import 'package:flutter/material.dart';

class CopyrightInfo extends StatelessWidget {
  const CopyrightInfo({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.symmetric(vertical: 16.0),
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          Text(
            '作者：坚果派',
            style: TextStyle(
              fontSize: 14,
              color: Colors.grey[600],
            ),
          ),
          const SizedBox(height: 4),
          Text(
            '公众号：nutpi',
            style: TextStyle(
              fontSize: 14,
              color: Colors.grey[600],
            ),
          ),
          const SizedBox(height: 4),
          Text(
            '电话：17752170152',
            style: TextStyle(
              fontSize: 14,
              color: Colors.grey[600],
            ),
          ),
          const SizedBox(height: 4),
          InkWell(
            onTap: () {
              // TODO: 添加打开网站的功能
            },
            child: Text(
              '官网：https://www.nutpi.net/',
              style: TextStyle(
                fontSize: 14,
                color: Colors.blue[600],
                decoration: TextDecoration.underline,
              ),
            ),
          ),
        ],
      ),
    );
  }
}